/** 
 * 数据引接 原模块
 * 只做备份 确认不再使用后可以删除相关页面
*/

export default [
  {
    path: "/dataReceive",
    component: () => import("@/views/layout/home"),
    alwaysShow: true,
    redirect: "/dataReceive/subjectManagement",
    meta: {
      title: "数据引接",
      icon: "el-icon-folder-opened",
      roles: ["superAdmin"],
    },
    children: [
      {
        path: "subjectManagement",
        component: () => import("@/views/dataReceive/subjectManagement"),
        name: "SubjectManagement",
        meta: {
          title: "主题管理",
          roles: ["superAdmin"],
        },
      },
      {
        path: "dataSourceManagement",
        component: () => import("@/views/dataReceive/dataSourceManagement"),
        name: "DataSourceManagement",
        meta: {
          title: "数据源管理",
          roles: ["superAdmin"],
        },
      },
      {
        path: "modelDesign",
        component: () => import("@/views/layout/subHome"),
        name: "ModelDesign",
        // alwaysShow: true,
        redirect: "/dataReceive/modelDesign/logicModel",
        meta: {
          title: "模型设计",
          roles: ["superAdmin"],
        },
        children: [
          {
            path: "logicModel",
            component: () =>
              import("@/views/dataReceive/modelDesign/logicModel/index.vue"),
            name: "logicModel",
            meta: {
              title: "逻辑模型",
              roles: ["superAdmin"],
              // activeMenu: "/server/logicModel",
            },
          },
          {
            path: "logicModelManagement", //
            hidden: true,
            redirect: "/dataReceive/modelDesign/logicModel",
            component: () =>
              import(
                /* webpackChunkName: "Layout" */ "@/views/dataReceive/modelDesign/logicModel/layout"
              ),
            meta: {
              title: "逻辑模型",
            },

            children: [
              {
                path: "property/:id/",
                component: () =>
                  import(
                    "@/views/dataReceive/modelDesign/logicModel/modelManagement"
                  ),
                name: "logicModelManagement",
                hidden: true,
                meta: {
                  title: "逻辑模型管理",
                  roles: ["superAdmin", "commonAdmin"],
                  activeMenu: "/dataReceive/modelDesign/logicModel",
                },
              },
              {
                path: "relationship/:id/",
                component: () =>
                  import(
                    "@/views/dataReceive/modelDesign/logicModel/modelRelation.vue"
                  ),
                name: "logicModelRelationship",
                hidden: true,
                meta: {
                  title: "逻辑模型关系",
                  roles: ["superAdmin", "commonAdmin"],
                  activeMenu: "/dataReceive/modelDesign/logicModel",
                },
              },
            ],
          },

          {
            path: "physicModel",
            component: () =>
              import("@/views/dataReceive/modelDesign/physicModel"),
            name: "physicModel",
            meta: {
              title: "物理模型",
              roles: ["superAdmin"],
            },
          },
          {
            path: "physicModel/property/:id/",
            component: () =>
              import(
                "@/views/dataReceive/modelDesign/physicModel/modelManagement"
              ),
            name: "physicModelManagement",
            hidden: true,
            meta: {
              title: "物理模型管理",
              roles: ["superAdmin", "commonAdmin"],
              activeMenu: "/dataReceive/modelDesign/physicModel",
            },
          },
        ],
      },
      {
        path: "dataCollection",
        component: () => import("@/views/layout/subHome"),
        name: "DataReceive",
        alwaysShow: true,
        redirect: "/dataReceive/dataCollection/dataCollectionTask",
        meta: {
          title: "数据采集",
          roles: ["superAdmin"],
        },
        children: [
          {
            path: "dataCollectionTask",
            component: () =>
              import(
                "@/views/dataReceive/dataCollection/dataCollectionTask/index.vue"
              ),
            name: "DataCollectionTask",
            meta: {
              title: "采集任务",
              roles: ["superAdmin"],
            },
          },
          {
            path: "collectionResult",
            component: () =>
              import(
                "@/views/dataReceive/dataCollection/collectionResult/index.vue"
              ),
            name: "CollectionResult",
            meta: {
              title: "采集结果",
              roles: ["superAdmin"],
            },
          },
          {
            path: "collectionResult/detail/:id",
            component: () =>
              import(
                "@/views/dataReceive/dataCollection/collectionResult/detail.vue"
              ),
            name: "DetailLog",
            hidden: true,
            meta: {
              title: "采集结果详情",
              roles: ["superAdmin"],
              activeMenu: "/dataReceive/dataCollection/collectionResult",
            },
          },
          // {
          //   path: "dataMaintenance",
          //   component: () =>
          //     import(
          //       "@/views/dataReceive/dataCollection/dataMaintenance/index.vue"
          //     ),
          //   name: "dataMaintenance",
          //   meta: {
          //     title: "数据维护",
          //     roles: ["superAdmin"],
          //   },
          // },
          // {
          //   path: "dataMaintenance/detail/:id",
          //   component: () =>
          //     import(
          //       "@/views/dataReceive/dataCollection/dataMaintenance/detail.vue"
          //     ),
          //   name: "dataDetail",
          //   hidden: true,
          //   meta: {
          //     title: "数据维护详情",
          //     roles: ["superAdmin"],
          //     activeMenu: "/dataReceive/dataCollection/dataMaintenance",
          //   },
          // },
        ],
      },
    ],
  },
];
